<!DOCTYPE html>

<html>

<head>

	<title>修改费用信息</title>

	<include file='public/head'>

	<style>

		.layui-legend-size{font-size:14px !important;}

		.layui-nopadding{padding:0 !important;}

		.layui-overflow{overflow:auto;}

		.layui-nomargin{margin: 0 !important;}

		.layui-bottom{border-bottom:1px solid rgb(226, 226, 226);}

		.layui-input{height:30px !important; }

		.layui-form-search-item .layui-inline{margin-bottom: 5px;} 

		.layui-form-search-item label{margin-left: 15px;}

		.layui-table-page {padding: 7px 0px 0px;}

		.layui-field-padding{border-width: 1px;padding:0 0 5px 10px;}

	</style>		

</head>

<body>

	<div class="layui-card">

		<!-- <button type="button" class="layui-btn" onclick="javascript:history.back(-1);"><i class="layui-icon layui-icon-return"></i> 返回</button> -->

		<div class="layui-card">

			<fieldset class="layui-elem-field layui-field-title layui-field-padding">

				<legend class="layui-legend-size">费用信息</legend>

				<form method="post" id="f">

					<input type="hidden" name="order_num" value="{$order->order_num}">

					<table  class="layui-table layui-nomargin" >

						<thead>

							<tr>

								<td>商品合计</td>

								<td>运费</td>

								<td>优惠券</td>

								<td>积分折扣</td>

							</tr>

						</thead>

						<tbody>

							<tr>

								<td>

									<php>$count = 0;</php>

										<volist name="order_goods_list" id="vo">

											<php>$count+= $vo->order_goods_price * $vo->order_goods_num;</php>

										</volist>

									{$count}

								</td>

								<td>

									<input type="text" class="layui-input" name="order_consignee_money" value="{$order_consignee->order_consignee_money}" placeholder="运费">

								</td>

								<td></td>

								<td></td>

							</tr>

						</tbody>

						<thead>

							<tr>

								<th>会员优惠</th>

								<th>订单总金额</th>

								<th>应付款金额</th>

								<th></th>

							</tr>

						</thead>

						<tbody>

							<tr>

								<td></td>

								<td>

									<input type="text" class="layui-input" name="order_money" value="{$order->order_money}" placeholder="总金额">

								</td>

								<td>

									{$count}

								</td>

								<td></td>

							</tr>

						</tbody>

					</table>

				</form>

			</fieldset>

		</div>	

	</div>





	<include file='public/scripts'>

<script type="text/javascript">


	function tijiao(){
        $.ajax({
            url:"{:cmf_plugin_url('Order://admin_index/moneyedit')}",
            type:'post',
            data:$('#f').serialize(),
			success:function(data){
				if (data.code == 1) {
					layer.msg(data.msg,{icon:1,time:1500},function(){
						window.parent.window.location.reload();
					});
				} else {
					layer.msg(data.msg,{icon:2,time:1500});
				}
			},
			error:function()
			{
				layer.msg('系统错误',{icon:2,time:1500});
			}
        })   
    }



</script>

</body>

</html>	